import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
    generateAccountingPeriod = '/base/accountingCalendar/generateAccountingPeriod',
    getAccountingCalendar = '/base/accountingCalendar/getAccountingCalendar',
}
/**
* 会计日历-生成会计期间
* @param params
*/
export const generateAccountingPeriod = (params) =>
    defHttp.post({ url: Api.generateAccountingPeriod, params });

/**
* 会计日历-获取会计日历
* @param params
*/
export const getAccountingCalendar = () =>
    defHttp.post({ url: Api.getAccountingCalendar });